package com.linwen.dataStructure.list.arrayList;

import com.linwen.javase.MyPrint;

/**
 * @author : linwen
 * @date : 下午11:28 2020/12/13
 */
public class ArraysUtilsTest {
    public static void main(String[] args) {
        int[] arr = new int[]{2,5,8,6,3,1,7,9};
        //ArraysUtils ArraysUtils = new ArraysUtils();
        System.out.println("最大值是"+ ArraysUtils.max(arr));
        System.out.println("最小值是"+ArraysUtils.min(arr));
        System.out.println("总和值是"+ArraysUtils.sum(arr));
        System.out.println("平均值是"+ArraysUtils.avg(arr));
        System.out.println("3的位置是"+ArraysUtils.index(arr,3));
        System.out.println("排序之后是");
        ArraysUtils.sort(arr);
        MyPrint.print(arr);
        System.out.println(Math.sqrt(4));
    }
}
